<%--
  Created by IntelliJ IDEA.
  User: 冲塔怪
  Date: 2022/5/1
  Time: 10:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $("#code_img").click(function(){
                this.src="${pageContext.request.contextPath}/Kaptcha.jpg?d="+new Date();
            });
        });
    </script>
</head>
<body>
<form action="${pageContext.request.contextPath}/register" method="post">
    <table>
        <tr>
            <td>用户名:</td>
            <td><input type="text" name="name" placeholder="请输入用户名"></td>
        </tr>
        <tr>
            <td>性别:</td>
            <td><input type="radio" name="sex" checked="checked" value="男">男 <input type="radio" name="sex" value="女">女</td>
        </tr>
        <tr>
            <td>年龄:</td>
            <td><input type="text" name="age" placeholder="请输入年龄"></td>
        </tr>
        <tr>
            <td>密码:</td>
            <td><input type="password" name="password" placeholder="请输入密码"></td>
        </tr>
        <tr>
            <td>确认密码:</td>
            <td><input type="password" name="repassword"></td>
        </tr>
        <tr>
            <td>邮箱:</td>
            <td><input type="text" name="email" placeholder="请输入邮箱"></td>
        </tr>
        <tr>
            <td>验证码:</td>
            <td><input type="text" name="code" style="width: 80px"><img id="code_img" style="width: 100px" src="${pageContext.request.contextPath}/Kaptcha.jpg" alt=""></td>
        </tr>
        <tr>
            <td><input type="submit" value="注册"></td>
            <td><button><a href="${pageContext.request.contextPath}/jsp/user/login.jsp">返回登录</a></button></td>
        </tr>
    </table>
</form>
</body>
</html>
